package com.demo0211;

/**
 * Created by cc
 * Description:
 * User: CZH
 * Date: 2023-02-11
 * Time: 14:37
 */
public class SeqListTest {
    public static void main(String[] args) {
        SeqList sl = new SeqList();
        System.out.println(sl.isFull());
        sl.add(0,4);
        sl.add(0,3);
        sl.add(0,2);
        sl.add(0,1);
        sl.display();
        System.out.println(sl.isEmpty());
        System.out.println(sl.contains(1));
        System.out.println(sl.search(2));
        System.out.println(sl.getPos(1));
        System.out.println(sl.size());
        sl.setPos(1,111);
        sl.display();
        sl.setPos(3, 1);
        sl.display();
        sl.remove(1);
        sl.display();
        sl.clear();
        sl.display();

    }
}
